$.remote_ticket = function(option) {
 label_csss = 'position:fixed;bottom:7px; right:0px; font-size:20px;background:url(http://www.ceoconnect.in/feedback/images/strip-feedback.png); height:111px;width:30px';
 
 $("body").append("<style> .remote_t_cl{ "+label_csss+" } </style>");
  if(!$("body").length){
	  console.error("Body tag not found or add this function in onload event");
	  return;
  }
  
  deFault = {
		  title : "a",
		  label : "Ticket" 	
  };
  $.extend(deFault,option);
  
  label_link = '<a href="javascript:{}" onclick="openWin(\'http://localhost/github/ticket/my-ticket/newticket_external.php?uniqueid='+option.uniqeId+'\')" class="remote_t_cl">'+deFault.label+'</a>';
  $("body").append(label_link);
  

}; 

/*function openWin(url)
{ 
popupWindow = window.open(
url,'popUpWindow','height=400,width=700,left=100,top=100,resizable=no,scrollbars=no,toolbar=no,menubar=no,location=no,directories=no,status=no')
}*/

function openWin(url, title, w, h) {
  var w   = 500;
  var h   = 500;
  var left = (screen.width/2)-(w/2);
  var top = (screen.height/2)-(h/2);
  return window.open(url, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left);
} 